<?php
require_once('PHPUnit/Framework.php');
require_once('TVB/pms/pdes/common/bootstrap.php');
require_once('TVB/pms/pdes/common/util/portal/PortalData.class.php');

class PortalDataGetOperationTest extends PHPUnit_Framework_TestCase
{
    public function setUp()
    {
    }

    public function tearDown()
    {
    }

    public function testGetFolderByCast()
    {
        $casts = array(
            array('id'=>490, 'programme_id'=>88),
            array('id'=>491, 'programme_id'=>88),
        );
        $ret = PortalData::getFolderByCast($casts);
        //var_export($ret);
    }

    public function testGetFolderListByImageId()
    {
        $folder_list = PortalData::getFolderListByImageId(179);
        //echo $folder_list;
    }

    public function testGetPortalDataOfEpisode()
    {
        //PortalData::getPortalData('episode', 250);
    }

    public function testGetPortalDataOfProgramme()
    {
        $programme = PortalData::getPortalData('p_programme', 88);
        //var_dump($programme);
    }

    public function testGetPmsChapter()
    {
        //$video = PortalData::getPmsChapterByProgrammeId(88);
       // var_dump($video);
    }

    public function testGetPmsInfosByEpisodeId()
    {
        //$episode_infos = PortalData::getPmsInfosByEpisodeId(250);
        //var_export($episode_infos);
    }

    public function testGetPmsChapterByProgrammeId()
    {
        //$chapter = PortalData::getPmsChapterByProgrammeId(88);
        //var_dump($chapter);
    }

    public function testGetFolderListPathByFolderId()
    {
        $rs = PortalData::getFolderListPathByFolderId('1798,1799,1803,1804');
        var_dump($rs);
    }

}
?>
